10aec64c1a027e42eebd33242cc0aa2bcf5bc8cd,python/src/com/jetbrains/python/codeInsight/PyKeywordCompletionContributor.java,PyKeywordCompletionContributor,addWithinIf,#,192

Before Change



  protected void addWithinIf() {
    extend(
      CompletionType.BASIC, psiElement().withLanguage(PythonLanguage.getInstance()).andNot(AFTER_QUALIFIED_REFERENCE).andOr(IN_IF, AFTER_IF),
      new CompletionProvider<CompletionParameters>() {
        protected void addCompletions(
          @NotNull final CompletionParameters parameters, final ProcessingContext context, @NotNull final CompletionResultSet result

After Change


  private void addWithinIf() {
    extend(
      CompletionType.BASIC, psiElement()
        .withLanguage(PythonLanguage.getInstance())
        .and(FIRST_ON_LINE)
        .andOr(IN_IF_BODY, AFTER_IF)  // NOTE: does allow 'elif' after 'else', may be useful for easier reordering of branches
        //.andNot(RIGHT_AFTER_COLON)
        .andNot(AFTER_QUALIFIER)
      ,
      new CompletionProvider<CompletionParameters>() {
        protected void addCompletions(
          @NotNull final CompletionParameters parameters, final ProcessingContext context, @NotNull final CompletionResultSet result